<template>
  <div class="top">
    一级-发现音乐
    <hr />
    <!-- 路由嵌套 -->
    <div class="tab">
      <router-link to="/findmusic/recommend">推荐</router-link
      >&nbsp;&nbsp;&nbsp;
      <router-link to="/findmusic/ranking">排行榜</router-link
      >&nbsp;&nbsp;&nbsp;
      <router-link to="/findmusic/songlist">歌单</router-link>
      <hr />
    </div>
    <div style="border: 1px solid blue">
      <!-- 显示二级路由页面的地方 -->
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
a {
  text-decoration: none;
}
.router-link-active {
  color: red;
}
.tab {
  text-align: center;
}
.top {
  text-align: center;
}
</style>